package io.renren.modules.carlunbo.dto;


import io.renren.common.validator.group.AddGroup;
import io.renren.common.validator.group.UpdateGroup;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
/**
 * 轮播图DTO类
 */
@Data
public class CarLunboDTO implements Serializable  {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @NotNull(message="id不能为空", groups = {UpdateGroup.class})
    private Long id;

    @ApiModelProperty(value = "备注")
    @NotBlank(message="备注不能为空", groups = {AddGroup.class,UpdateGroup.class})
    private String remarks;

    @ApiModelProperty(value = "轮播图URL地址")
    @NotBlank(message="轮播图URL地址不能为空", groups = {AddGroup.class,UpdateGroup.class})
    private String pictureUrl;

    @ApiModelProperty(value = "排序")
    @NotNull(message="排序不能为空", groups = {AddGroup.class,UpdateGroup.class})
    private Integer sort;

}
